package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Signin;
import cn.wolfcode.crm.query.QueryForObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface SigninMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Signin record);

    Signin selectByPrimaryKey(Long id);

    List<Signin> selectAll();

    int updateByPrimaryKey(Signin record);

    void signinTime(Signin signin);

    Signin selectSigninByEmployeeId(@Param("id") Long id, @Param("date")String date);

    void signoutTime(Signin signin);

    int queryForCount(QueryForObject qo);

    List<Signin> queryForList(QueryForObject qo);

    Set<Signin> querySigninByEmployeeId(Long id);
}